package com.bbcloud.service;

import com.bbcloud.common.ServerResponse;
import com.bbcloud.pojo.User;
import com.bbcloud.vo.UserVo;
import org.springframework.web.multipart.MultipartFile;

/**
 * Created by liuzhu on 2018/11/2.
 */
public interface IUserService {

    ServerResponse<UserVo> login(String username, String password);

    ServerResponse getValidCode(String account);

    ServerResponse register(String account, String validCode, String password,String invitationCode);

    ServerResponse<User> getUserInfo(String account, String token);

    ServerResponse<String> forgetResetPassword(String account, String password, String validCode);

    ServerResponse isLogin(String account,String token);

    ServerResponse uploadHeadImage(MultipartFile file, String path,String userId);
}
